<div style="position:fixed;top:0;left:0;z-index: 1;width: 230px;height: 100%;background: #3e3b39;"></div>
{$aa==($group_rules_2019=get_power_check())}
<div class="left_mune fixed">
    <ul id="ul">
        <li class="left_top">{$Think.lang.web_name}</li>
        {foreach name="new_menu" key="key" id="v" index="i"}
        {if  $group_rules_2019 == -1 || in_array($v.menu_id,$group_rules_2019)}
        <li class="left_nav" style="{if !isset($v.child)} display: none;{/if}" {if in_array($v.menu_name,[$mca.c])}data-on="2"{/if}>
        <a class="left_nav_a" href="javascript:;" >
            <i class="fa {$v.menu_icon}"></i>
            <span>{$v.add_str|raw}{$v.menu_title}</span>
            <span class="lm-float-r" >
                    <i class="fa fa-angle-right" aria-hidden="true" data-b="fa fa-angle-down" data-r="fa fa-angle-right"></i>
                </span>
        </a>
        <ul class="s-show">
            {if isset($v.child)}
            {foreach name="v.child" key="k" id="val"}
            {if  $group_rules_2019 == -1 || in_array($val.menu_id,$group_rules_2019)}
            <li><a href="/{$val.menu_name}" {if $val.menu_name == $mca.ca}data-on="1" class="s-color-fcfcfc" {/if} >{$val.add_str|raw}{$val.menu_title}</a> </li>
            {/if}
            {/foreach}
            {/if}
        </ul>
        </li>
        {/if}
        {/foreach}
        <li class="left_nav" style="height: 0;"></li>
    </ul>
</div>
<script type="text/javascript">
    $(".left_mune").css("min-height",(document.documentElement.clientHeight || window.innerHeight)+"px").attr("class","left_mune");
    $(function () {

        window.left_menu_2019=function(argument){
            var menu = this.parentNode;
            var ul = $("ul",menu);
            var icon = $("span>i",this);

            (argument==1)&&(this.hide=true);
            if (this.hide){
                menu.style.height ="";
                icon.attr("class",icon.attr("data-r"));
                $(this).attr("is_click",0);
            }
            else{
                menu.style.height = (35+ul[0].offsetHeight)+"px";
                icon.attr("class",icon.attr("data-b"));
                $(this).attr("is_click",1);
            }

            this.hide = !this.hide;

            // var div = $("ul>div",this);
            console.log(ul[0],ul[0].offsetHeight);
        }
        var left_menu_a_2019 = $(".left_nav>.left_nav_a");
        left_menu_a_2019.on("click",function (e) {
            if ($(this).attr("is_click")==1){
                left_menu_2019.call(this,1);
                return false;
            }
            for (var i=0,len=left_menu_a_2019.length;i<len;i++){
                left_menu_2019.call(left_menu_a_2019[i],1);
            }
            left_menu_2019.call(this);
        });

        var on=$("a[data-on=1]");
        if(on.length>0){
            var li = on.parent().parent().parent();
            var ul = $("ul",li[0]);
            //li.css("height",(35+ul[0].offsetHeight)+"px");
            //$(".left_nav_a",li[0])[0].click();
            $(".left_nav_a",li[0]).click();
        }
        else{
            var li = $("li[data-on=2]");
            if(li.length>0){
                $(".left_nav_a",li[0]).click();
            }
            // var ul = $("ul",li[0]);
            // li.css("height",(35+ul[0].offsetHeight)+"px");
        }
    });
</script>